package com.hfy.kandian.dao.command;

import com.hfy.kandian.entity.Writer;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class WriterCommand {

    private int writerId;

    private int userId;

    private String writerName;

    private String writerIntroduction;

    private String bankcard;


    public Writer convertToWriter() {
        Writer writer = new Writer();
        BeanUtils.copyProperties(this,writer);
        return writer;
    }
}
